{template 'common/header'}
<ul class="nav nav-tabs">
 	<li class="active"><a>汽车实用工具管理</a></li>	
</ul>
<style>
.table td span{display:inline-block;}
.table td input{margin-bottom:0;}
</style>
<script type="text/javascript">
$(function(){
	$('div.make-switch').on('switch-change', function (e, data) {
		var tools = [];
		$('div.make-switch :checkbox:checked').each(function(){
			tools.push($(this).val());
		});
		$.post(location.href, {'tools': tools.toString(),'action':'change'}, function(dat){

		});
	});
});
</script>
<form action="" method="post">
<div class="main">
	<div style="padding:15px;">
		<table class="table table-hover">
			<thead class="navbar-inner">
				<tr>
					<th style="width:200px;">服务名称</th>
					<th style="min-width:260px;">功能说明</th>
					<th style="width:60px;">状态</th>
				</tr>
			</thead>
			<tbody>
				
				<tr>
					<td>保险计算</td>
					<td>计算车辆保险</td>
					<td>
						<div class="make-switch" data-on-label="启用" data-off-label="停用">
							<input type="checkbox" value="1" {if $toolsArr['1']}checked="checked"{/if} />
						</div>
					</td>
				</tr>
								<tr>
					<td>车贷计算</td>
					<td>车辆贷款计算</td>
					<td>
						<div class="make-switch" data-on-label="启 用" data-off-label="停用">
							<input type="checkbox" value="2" {if $toolsArr['2']}checked="checked"{/if} />
						</div>
					</td>
				</tr>
				<tr>
					<td>全款计算</td>
					<td>全款计算</td>
					<td>
						<div class="make-switch" data-on-label="启用" data-off-label="停用">
							<input type="checkbox" value="3" {if $toolsArr['3']}checked="checked"{/if} />
						</div>
					</td>
				</tr>
								<tr>
					<td>车型比较</td>
					<td>车型比较</td>
					<td>
						<div class="make-switch" data-on-label="启用" data-off-label="停用">
							<input type="checkbox" value="4" {if $toolsArr['4']}checked="checked"{/if} />
						</div>
					</td>
				</tr>
								<tr>
					<td>违章查询</td>
					<td>"违章查询"</td>
					<td>
						<div class="make-switch" data-on-label="启用" data-off-label="停用">
							<input type="checkbox" value="5" {if $toolsArr['5']}checked="checked"{/if} />
						</div>
					</td>
				</tr>
				</tbody>
		</table>
	</div>
</div>
</form>
{template 'common/footer'}
